package com.ruoyi.vpn.mapper;

import java.util.List;
import com.ruoyi.vpn.domain.VpnUser;
import org.apache.ibatis.annotations.Mapper;

/**
 * userMapper接口
 * 
 * @author Edwin
 * @date 2024-01-08
 */
@Mapper
public interface VpnUserMapper 
{
    /**
     * 查询user
     * 
     * @param userId user主键
     * @return user
     */
    public VpnUser selectVpnUserByUserId(Long userId);

    /**
     * 查询user列表
     * 
     * @param vpnUser user
     * @return user集合
     */
    public List<VpnUser> selectVpnUserList(VpnUser vpnUser);

    /**
     * 新增user
     * 
     * @param vpnUser user
     * @return 结果
     */
    public int insertVpnUser(VpnUser vpnUser);

    /**
     * 修改user
     * 
     * @param vpnUser user
     * @return 结果
     */
    public int updateVpnUser(VpnUser vpnUser);

    /**
     * 删除user
     * 
     * @param userId user主键
     * @return 结果
     */
    public int deleteVpnUserByUserId(Long userId);

    /**
     * 批量删除user
     * 
     * @param userIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVpnUserByUserIds(Long[] userIds);

    public List<VpnUser> selectVpnUserListStrict(VpnUser vpnUser);
}
